$(function(){
    $("form").submit(function(){
        var enCryptionPwd = $.base64.encode($("input[name=pwdinput]").val());
        /*$("input[name=passWord]").val(enCryptionPwd);*/
        $("input[name=passWord]").val($("input[name=pwdinput]").val());
        $("input[name=pwdinput]").attr("disabled");
        return true;
    });

    if($("#errorMsg").html()) {
        if($("#errorType").html() == "1") {
            layer.tips($("#errorMsg").html(), '#userNameinput', {
                tips: [2, '#FF9900'],
                time: 3000
            });
        } else if($("#errorType").html() == "2") {
            layer.tips($("#errorMsg").html(), '#pwdinput', {
                tips: [2, '#FF9900'],
                time: 3000
            });
        }

    }
});